﻿using System;

namespace AppTwo
{
    public class Subscription
    {
        public Decimal Price { get; set; }
        public Int32 NumberShows { get; set; }

        public Boolean IsIssued { get; set; }
        public Boolean IsPrinted { get; set; }
        public Boolean IsCanceled { get; set; }

        public decimal Rateo
        {
            get
            {
                return Math.Round(Price / NumberShows, 2);
            }
        }

        public Boolean CanPrint
        {
            get
            {
                return IsIssued && !IsPrinted && !IsCanceled;
            }
        }
    }
}
